export default [
  {
    path: '/login',
    component: '@/pages/login',
  },
  {
    path: '/',
    component: '@/layouts/BasicLayout',
    routes: [
      { path: '/', redirect: '/login' },
      {
        path: '/workBench',
        name: '工作台',
        routes: [
          {
            path: '/workBench/demo',
            name: 'Demo',
            component: '@/pages/demo',
          },
          {
            path: '/workBench/uiPage',
            name: 'UI展示',
            component: '@/pages/uiPage',
          },
        ],
      },
      {
        path: '/workBench/test',
        name: '测试',
        routes: [
          {
            path: '/workBench/test',
            name: 'test',
            component: '@/pages/test',
          },
        ],
      },
    ],
  },
  { path: '/*', component: '@/pages/404' },
];
